import {ssStorage, lsStorage} from '../common/cache.js'

const TokenKey = 'user-token'

export function getToken () {
  return lsStorage.get(TokenKey)
}

export function setToken (token) {
  return lsStorage.set(TokenKey, token)
}

export function removeToken () {
  return lsStorage.delete(TokenKey)
}
